package com.ruoyi.coupons.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券对象 t_coupons
 * 
 * @author ruoyi
 * @date 2024-11-12
 */
public class TCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠卷id */
    private Long couponId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 优惠券额度 */
    @Excel(name = "优惠券额度")
    private Long couponAmount;

    /** 优惠卷门槛 */
    @Excel(name = "优惠卷门槛")
    private Double couponDoor;

    /** 优惠券库存 */
    @Excel(name = "优惠券库存")
    private Long couponStore;

    /** 优惠券状态 */
    @Excel(name = "优惠券状态")
    private String couponType;

    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCouponAmount(Long couponAmount) 
    {
        this.couponAmount = couponAmount;
    }

    public Long getCouponAmount() 
    {
        return couponAmount;
    }
    public void setCouponDoor(Double couponDoor) 
    {
        this.couponDoor = couponDoor;
    }

    public Double getCouponDoor() 
    {
        return couponDoor;
    }
    public void setCouponStore(Long couponStore) 
    {
        this.couponStore = couponStore;
    }

    public Long getCouponStore() 
    {
        return couponStore;
    }
    public void setCouponType(String couponType) 
    {
        this.couponType = couponType;
    }

    public String getCouponType() 
    {
        return couponType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("couponId", getCouponId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("couponAmount", getCouponAmount())
            .append("couponDoor", getCouponDoor())
            .append("couponStore", getCouponStore())
            .append("couponType", getCouponType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
